package com.example.framework.interceptor;

import com.example.system.service.impl.UserServiceImpl;
import org.springframework.web.servlet.HandlerInterceptor;

/**
 * @Author 王鹤蒲
 * @Date 2023 08 06
 */

public class JwtInterceptor implements HandlerInterceptor {


  private static UserServiceImpl userService=new UserServiceImpl();



//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        String token = request.getHeader("token");
//        if (!(handler instanceof HandlerMethod)) {
//            return true;
//        } else {
//            HandlerMethod handlerMethod = (HandlerMethod) handler;
//            AuthConfig authConfig = handlerMethod.getMethodAnnotation(AuthConfig.class);
//            if (authConfig != null) {
//                return true;
//            }
//        }
//        TokenUtils.verifyToken(token);
//        return true;
//    }



}
